<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<include file="Public/head" />
<script>
function goodslink(del_type)
{
	var url = window.location.href;
	clearurl = url.replace(/[\s\S]*Mobile\//,"");
	//转数组
	var arrurl=clearurl.split("/");//分割成字符串数组
	//判断链接是否已存在参数
	var ifhave = IsInArray(arrurl,del_type);
	var len = arrurl.length;
	arrurl2 = new Array();
	if(ifhave)
	{
		//找出需要去除的项
		for(i=0;i<len;i++)
		{
			if(arrurl[i]==del_type)
			{
				x = i;
				y = i+1;
			}
		}
		//去除项
		for(i=0;i<len;i++)
		{
			if(i!=x && i!=y)
			{
				arrurl2[i] = arrurl[i];
			}
		}
		//重写链接
		newlink = "/Mobile";
		arrurl2.forEach(function(e) {
		   newlink += "/"+e;
        })
	}
	window.location.href=newlink; 
}

function IsInArray(arr,val)
{
	var testStr=','+arr.join(",")+","; 
	return testStr.indexOf(","+val+",")!=-1;
} 
</script>
</head>

<body>
<include file="Public/top" />

<div class="page_minheight">
<div class="goods_cate">
  <div class="return"><a href="{:U('Index/index')}"><i class="icon-fanhui"></i></a></div>
  <if condition="$type_id eq 3">天猫商城
  <elseif condition="$type_id eq 4" />淘宝商城
  <elseif condition="$type_id eq 5" />京东商城
  <elseif condition="$type_id eq 6" />其他商城
  </if>
  <div class="goods_csx"><i class="icon-shaixuan"></i> 筛选</div>
</div><!--goods_cate-->

<!-----产品筛选----->
<div class="goods_spage <if condition='$flag eq 1'><if condition='$nowpage eq 1'>goods_spage_on</if></if>">
  <div class="goods_sheight">
  <div class="goods_spad">
    <div class="goods_sxdiv">
      <div class="goods_sxtit">所在平台<span><i class="icon-zhankai"></i></span></div>
      <div class="goods_sxcon">
        <foreach name="type_list" item="v" key="k">
          <div class="goods_sxa"><div class="pad"><a class="<if condition='$type_id eq $v[id]'>goods_aon</if>" href="{:U('Goods/goodsList',array('type_id'=>$v[id],'flag'=>1))}" >{$v[name]}</a></div></div>
        </foreach>
        <div class="clear"></div>
      </div><!--goods_sxcon-->
    </div><!--goods_sxdiv-->
    
    <if condition="$storeType_tm neq ''">
    <div class="goods_sxdiv">
      <div class="goods_sxtit">店铺类型<span><i class="icon-zhankai"></i></span></div>
      <div class="goods_sxcon">
        <if condition="$store_type">
          <div class="goods_sxa"><div class="pad"><a href="javascript:void(0)" onclick="goodslink('store_type')">不限</a></div></div>
        <else />
          <div class="goods_sxa"><div class="pad"><a class="goods_aon" href="javascript:void(0)">不限</a></div></div>
        </if>
        <foreach name="storeType_tm" item="v9" key="k9">
          <div class="goods_sxa"><div class="pad"><a class="<if condition='$store_type eq $k9'>goods_aon</if>" href="{:U('Goods/goodsList',array('store_type'=>$k9,'price_type'=>$price_type,'area_type'=>$area_type,'sort_asc'=>$sort_asc,'trade_type'=>$trade_type,'brand_type'=>$brand_type,'type_id'=>$type_id,'is_discount'=>$is_discount,'credit_type'=>$credit_type,'flag'=>1))}">{$v9}</a></div></div>
        </foreach>
        <div class="clear"></div>
      </div><!--goods_sxcon-->
    </div><!--goods_sxdiv-->
    </if>
    
    <!--淘宝信用等级-->
    <if condition="$type_id eq 4">
    <div class="goods_sxdiv">
      <div class="goods_sxtit">信用等级<span><i class="icon-zhankai"></i></span></div>
      <div class="goods_sxcon">
        <div class="siconfr">
          <input type="hidden" id="xyfrom" value="{$credit_type1}">
          <input type="hidden" id="ixyto" value="{$credit_type2}">
          <div class="scopeCredit">
            <input type="text" id="range" value="" />
            <div class="scz">
              <span class="scz1">心<img src="__STATIC__/images/s_heart.png" /></span>
              <span class="scz2">钻<img src="__STATIC__/images/s_blue.png" /></span>
              <span class="scz3">皇冠<img src="__STATIC__/images/s_cap.png" /></span>
              <span class="scz4">金冠<img src="__STATIC__/images/b_cap.png" /></span>
            </div>
          </div>
        </div><!--siconfr-->
        <div class="siconsure">
          <div class="fl"><a href="javascript:void(0)" onclick="goodslink('credit_type')">不限</a></div>
          <div class="fr"><a href="javascript:void(0)" onclick="credit_a()">确认</a></div>
          <div class="clear"></div>
        </div><!--siconsure-->
        <link rel="stylesheet" type="text/css" href="__STATIC__/css/ion.rangeSlider.css">
        <link rel="stylesheet" type="text/css" href="__STATIC__/css/ion.rangeSlider.skinTaobao.css">
		<script src="__STATIC__/js/ion.rangeSlider.min.js"></script>
		<script src="__STATIC__/js/ion.config.js"></script>
		<script>
		  showRangeRuler('{$credit_type1}','{$credit_type2}');
		  //添加信用等级筛选
		  function credit_a()
		  {
			  var xyfrom = document.getElementById("xyfrom").value;
			  var ixyto = document.getElementById("ixyto").value;
			  var can = xyfrom+"_"+ixyto;
			  var linka = "{:U('Goods/goodsList',array('store_type'=>$k9,'price_type'=>$price_type,'area_type'=>$area_type,'trade_type'=>$trade_type,'brand_type'=>$brand_type,'type_id'=>$type_id,'flag'=>1))}";
			  linkarr = linka.split(".");
			  linka2 = linkarr[0]+"/credit_type/"+can+".html";
			  window.location.href=linka2; 
		  }
		</script>
        <div class="clear"></div>
      </div><!--goods_sxcon-->
    </div><!--goods_sxdiv-->
    </if>
    <!--淘宝信用等级-->
    
    <if condition="$storeType_jd neq ''">
    <div class="goods_sxdiv">
      <div class="goods_sxtit">注册类型？？？<span><i class="icon-zhankai"></i></span></div>
      <div class="goods_sxcon">
        <foreach name="storeType_jd" item="v9" key="k9">
          <div class="goods_sxa"><div class="pad"><a class="<if condition='$store_type eq $k9'>goods_aon</if>" href="{:U('Goods/goodsList',array('store_type'=>$k9,'price_type'=>$price_type,'area_type'=>$area_type,'trade_type'=>$trade_type,'brand_type'=>$brand_type,'type_id'=>$type_id,'credit_type'=>$credit_type,'flag'=>1))}" >{$v9}</a></div></div>
        </foreach>
        <div class="clear"></div>
      </div><!--goods_sxcon-->
    </div><!--goods_sxdiv-->
    </if>
    
    <div class="goods_sxdiv">
      <div class="goods_sxtit">商标类型<span><i class="icon-zhankai"></i></span></div>
      <div class="goods_sxcon">
        <if condition="$brand_type">
          <div class="goods_sxa"><div class="pad"><a href="javascript:void(0)" onclick="goodslink('brand_type')">不限</a></div></div>
        <else />
          <div class="goods_sxa"><div class="pad"><a class="goods_aon" href="javascript:void(0)">不限</a></div></div>
        </if>
        <foreach name="brandType" item="v9" key="k9">
          <div class="goods_sxa"><div class="pad"><a class="<if condition='$brand_type eq $k9'>goods_aon</if>" href="{:U('Goods/goodsList',array('store_type'=>$store_type,'price_type'=>$price_type,'area_type'=>$area_type,'sort_asc'=>$sort_asc,'trade_type'=>$trade_type,'brand_type'=>$k9,'type_id'=>$type_id,'is_discount'=>$is_discount,'credit_type'=>$credit_type,'flag'=>1))}" >{$v9}</a></div></div>
        </foreach>
        <div class="clear"></div>
      </div><!--goods_sxcon-->
    </div><!--goods_sxdiv-->
    
    <div class="goods_sxdiv">
      <div class="goods_sxtit">所属行业<span><i class="icon-zhankai"></i></span></div>
      <div class="goods_sxcon">
        <if condition="$trade_type">
          <div class="goods_sxa"><div class="pad"><a href="javascript:void(0)" onclick="goodslink('trade_type')">不限</a></div></div>
        <else />
          <div class="goods_sxa"><div class="pad"><a class="goods_aon" href="javascript:void(0)">不限</a></div></div>
        </if>
        <foreach name="goodsTrade" item="v9" key="k9">
          <div class="goods_sxa"><div class="pad"><a class="<if condition='$trade_type eq $k9'>goods_aon</if>" href="{:U('Goods/goodsList',array('store_type'=>$store_type,'price_type'=>$price_type,'area_type'=>$area_type,'sort_asc'=>$sort_asc,'trade_type'=>$k9,'brand_type'=>$brand_type,'type_id'=>$type_id,'is_discount'=>$is_discount,'credit_type'=>$credit_type,'flag'=>1))}" >{$v9}</a></div></div>
        </foreach>
        <div class="clear"></div>
      </div><!--goods_sxcon-->
    </div><!--goods_sxdiv-->
    
    <div class="goods_sxdiv">
      <div class="goods_sxtit">所在地区<span><i class="icon-zhankai"></i></span></div>
      <div class="goods_sxcon">
        <if condition="$area_type">
          <div class="goods_sxa"><div class="pad"><a href="javascript:void(0)" onclick="goodslink('area_type')">不限</a></div></div>
        <else />
          <div class="goods_sxa"><div class="pad"><a class="goods_aon" href="javascript:void(0)">不限</a></div></div>
        </if>
        <foreach name="goodsArea" item="v9" key="k9">
          <div class="goods_sxa"><div class="pad"><a class="<if condition="$area_type eq $k9">goods_aon</if>" href="{:U('Goods/goodsList',array('store_type'=>$store_type,'price_type'=>$price_type,'area_type'=>$k9,'sort_asc'=>$sort_asc,'trade_type'=>$trade_type,'brand_type'=>$brand_type,'type_id'=>$type_id,'is_discount'=>$is_discount,'credit_type'=>$credit_type,'flag'=>1))}" >{$v9}</a></div></div>
        </foreach>
        <div class="clear"></div>
      </div><!--goods_sxcon-->
    </div><!--goods_sxdiv-->
    
    <div class="goods_sxdiv">
      <div class="goods_sxtit">价格区间<span><i class="icon-zhankai"></i></span></div>
      <div class="goods_sxcon">
        <if condition="$price_type">
          <div class="goods_sxa"><div class="pad"><a href="javascript:void(0)" onclick="goodslink('price_type')">不限</a></div></div>
        <else />
          <div class="goods_sxa"><div class="pad"><a class="goods_aon" href="javascript:void(0)">不限</a></div></div>
        </if>
        <foreach name="priceType" item="v9" key="k9">
          <div class="goods_sxa"><div class="pad"><a class="<if condition="$price_type eq $k9">goods_aon</if>" href="{:U('Goods/goodsList',array('store_type'=>$store_type,'price_type'=>$k9,'area_type'=>$area_type,'sort_asc'=>$sort_asc,'trade_type'=>$trade_type,'brand_type'=>$brand_type,'type_id'=>$type_id,'is_discount'=>$is_discount,'credit_type'=>$credit_type,'flag'=>1))}">{$v9}</a></div></div>
        </foreach>
        <div class="clear"></div>
      </div><!--goods_sxcon-->
    </div><!--goods_sxdiv-->
  </div><!--goods_spad-->
  
  <div class="goods_sbtn">
    <a class="a1" href="javascript:void(0)">关闭</a>
    <a class="a2" href="javascript:void(0)">完成</a>
  </div>
  </div><!--goods_sheight-->
</div><!--goods_spage-->
<script>
//重写筛选页高度
function resx_height()
{
	bheight = window.innerHeight;
	bheight = bheight-70-64;
	bheight2 = bheight-60;
	$(".goods_spage").css({height:bheight+"px"});
	$(".goods_sheight").css({height:bheight2+"px"});
}
resx_height();
$(window).resize(function(){
	resx_height();
});


$(document).ready(function(){
	$(".goods_csx").click(function(){
		$(".goods_spage").addClass("goods_spage_on");
	});
	
	$(".goods_sbtn a").click(function(){
		$(".goods_spage").removeClass("goods_spage_on");
	});
	
	$(".goods_sxtit span").click(function(){
		$(this).parents(".goods_sxdiv").find(".goods_sxcon").slideToggle(200);
	});
});
</script>
<!-----产品筛选----->

<div class="page_in margin">
  
  <volist name="lists" id="v">
    <div class="goods_part">
      <a href="{:U('goodsInfo',array('id'=>$v['goods_id']))}">
        <div class="tit <if condition='$v[goods_type] eq 3'>tm<elseif condition='$v[goods_type] eq 4' />tb<elseif condition='$v[goods_type] eq 5' />jd<elseif condition='$v[goods_type] eq 6' />qt</if>">
          <div class="titp">{$v.seller_title}</div>
          <div class="mess">
            <p>所属行业：<php>$name=$goodsTrade[$v[trade_type]];echo $name;</php></p>
            <p>商城类型：
              <php>if($v[goods_type]==4){</php>
              淘宝店铺
              <php>}elseif($v[goods_type]==6){</php>
              其他店铺
              <php>
              }elseif($v[goods_type]==3){ $name=$storeType_tm[$v[store_type]];echo $name;
              }elseif($v[goods_type]==4){ $name=$storeType_jd[$v[store_type]];echo $name;
              }
              </php>
            </p>
          </div><!--mess-->
        </div>
        <if condition='$v[goods_type] neq 4'><div class="mess2"><p class="t">一级类目：{$v.epmi}</p></div></if>
        <div class="goods_tabs_div ginfo_pl">
          <if condition="$v[label]">
            <php> foreach(explode(',',$v[label]) AS $va){</php>
            <span class="goods_tabs">{$va}</span>
            <php> }</php>
          </if>
        </div><!--goods_tabs_div-->
        <div class="price"><div class="pricein"><p>售价：</p><div>￥{$v.price}</div><h1>查看详情</h1></div></div>
      </a>
    </div><!--goods_part-->
    </if>
  </volist>

  {$page}


  <div class="nofind_bg">
    <div class="nofind">
      <div class="pic"><img src="__STATIC__/images/nofind.png" /></div>
      <div class="word">
        <div class="h1"><p>暂未找到心仪网店？</p></div>
        
        <div class="mobtype_wechat"><div class="nofind_a"><div class="goods_ra goods_razx_on"><a href="http://wpa.qq.com/msgrd?v=3&uin={$sales.qq}&site=qq&menu=yes"><i class="icon-zxzx"></i> 咨询顾问</a></div></div></div>
        
        <div class="mobtype_web"><div class="nofind_a"><div class="goods_ra goods_razx_on"><a href="mqqwpa://im/chat?chat_type=wpa&uin={$sales.qq}&version=1&src_type=web"><i class="icon-zxzx"></i> 咨询顾问</a></div></div></div>
        
        <div class="h2">不要急哦，好多好店没有展示出来，马上联系服务顾问获取！</div>
      </div>
    </div>
  </div><!--nofind_bg-->
  <script>
  if(mobtype=="wechat" || mobtype=="miniprogram")
  {
  $(".mobtype_web").hide();
  }
  else
  {
  $(".mobtype_wechat").hide();
  }
  </script>

</div><!--page_in-->
</div><!--page_minheight-->

<include file="Public/ikefu" />
<include file="Public/footer" />
<script src="__STATIC__/js/global_after.js" type="text/javascript"></script>
</body>
</html>
